package com.by.constant;

import cn.hutool.core.date.chinese.SolarTerms;

/**
 * @author ServivE
 * @version 0.1
 * @className BusinessEnum
 * @description
 * @date 2024/12/4 10:43
 * @since jdk17
 */
public enum BusinessEnum {
    UN_AUTHORIZATION(401,"未授权"),
    ACCESS_DENY_FAIL(403, "权限不足,请联系管理员"),
    SERVER_INNER_ERROR(-1, "服务器内部异常"),
    OPERATION_FAIL(999, "操作失败");

    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * 状态码
     */
    private Integer code;
    /**
     * 状态码描述
     */
    private String desc;

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
